import React from 'react';
import ReactDOM from 'react-dom/client';
// import './index.css';
// 引入重置样式表, 去掉标签默认的样式
import 'normalize.css';
// 引入路由模式组件
import { BrowserRouter as Router } from 'react-router-dom';
import App from './App';
// 引入阿里字体图标
import '@/assets/iconfont/iconfont.css';

// 实现仓库store 的全局化
import { persistor, store } from '@/store'
import { PersistGate } from 'redux-persist/lib/integration/react';
import { Provider } from 'react-redux';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <PersistGate persistor={persistor}>
    <Provider store={store}>
      <Router>
        <App />
      </Router>
    </Provider>
  </PersistGate>
);
